/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package util;

import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author fosa
 */
public class Comando {

    public static void tocaEssa(String _musica) {
        try {
            Runtime.getRuntime().exec("rhythmbox-client --play-uri=" + _musica);
        } catch (IOException ex) {
            Logger.getLogger(Comando.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    public static void colocaNaFila(String _musica) {
        try {
            Runtime.getRuntime().exec("rhythmbox-client --play-uri=" + _musica);
        } catch (IOException ex) {
            Logger.getLogger(Comando.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    public static void playList(String _PlayList) {
        try {
            Runtime.getRuntime().exec("rhythmbox --playlists-file " + _PlayList);
        } catch (IOException ex) {
            Logger.getLogger(Comando.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
